Przejdź do głównej zawartości

Edytuj wpis numeru telefonu

PUT
/phones/{id}

Edytuj wpis z numerem telefonu.

id
required

ID numeru telefonu

integer
>= 1

Identyfikator numeru telefonu

The updated phones resource

Media type application/json

Phones list by group

object
phone
required

Numer telefonu

string
<= 30 characters
a

Dane kolumny numeru telefonu

string | null
<= 1530 characters
b

Dane kolumny numeru telefonu

string | null
<= 1530 characters
c

Dane kolumny numeru telefonu

string | null
<= 1530 characters
d

Dane kolumny numeru telefonu

string | null
<= 1530 characters
e

Dane kolumny numeru telefonu

string | null
<= 1530 characters
callback_data

Ciąg znaków, który zostanie odesłany do Twojego endpointu. Można go wykorzystać np. do przekazania identyfikatora wiadomości z Twojego systemu.

string | null
<= 36 characters
Example generated
{
"phone": "example",
"a": "example",
"b": "example",
"c": "example",
"d": "example",
"e": "example",
"callback_data": "example"
}

Phones resource updated

Phones list by group

object
@context
One of:
string
@id

Identyfikator JSON-LD

string
@type

Typ JSON-LD

string
id

ID numeru telefonu

integer
>= 1
phone
required

Numer telefonu

string
<= 30 characters
a

Dane kolumny numeru telefonu

string | null
<= 1530 characters
b

Dane kolumny numeru telefonu

string | null
<= 1530 characters
c

Dane kolumny numeru telefonu

string | null
<= 1530 characters
d

Dane kolumny numeru telefonu

string | null
<= 1530 characters
e

Dane kolumny numeru telefonu

string | null
<= 1530 characters
callback_data

Ciąg znaków, który zostanie odesłany do Twojego endpointu. Można go wykorzystać np. do przekazania identyfikatora wiadomości z Twojego systemu.

string | null
<= 36 characters
subscribed_at

Znacznik czasu zapisu użytkownika przez link

integer | null
unsubscribed_at

Znacznik czasu wypisania użytkownika przez link

integer | null
unsubscribe_reason

Powody wypisania:

  • 1 - Nigdy się nie zapisałem
  • 2 - Zbyt wiele wiadomości
  • 3 - Nie jestem zainteresowany
  • 4 - Treść jest niezrozumiała
  • 5 - Nie lubię Twojej firmy
  • 6 - Inny powód
integer | null
Example
{
"@context": {
"hydra": "http://www.w3.org/ns/hydra/core#"
}
}

Nieprawidłowe dane wejściowe

Identyfikator klienta lub klucz API nie jest aktywny albo jest nieprawidłowy!

Konto nie jest aktywowane. Poczekaj lub skontaktuj się z pomocą techniczną!

Nie znaleziono zasobu

Żądanie było poprawnie sformułowane, ale nie można go zrealizować z powodu błędów semantycznych

Adres IP został tymczasowo zablokowany, ponieważ w krótkim czasie wysłano z niego wiele żądań z nieprawidłowymi danymi uwierzytelniającymi. Poczekaj i spróbuj ponownie później.

Code Samples

#!/usr/bin/env bash
curl -X PUT https://api.lox24.eu/phones/12344 \
-H 'Content-Type: application/json' \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \
-d '{
"phone": "+93701234567",
"a": "Mr. ",
"b": "Smith ",
"c": "2020-02-23 18:00",
"d": "12.34",
"e": "restaurant Blue Oyster"
}'