Skip to content

Edit the entry of Phone

PUT
/phones/{id}

Edit an entry with a phone number.

#!/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"
}'
id
required
integer

Phone identifier

The updated phones resource

Phones list by group

object
phone
required

Phone number

string
<= 30 characters
a

Phone column data

string | null
<= 1530 characters
b

Phone column data

string | null
<= 1530 characters
c

Phone column data

string | null
<= 1530 characters
d

Phone column data

string | null
<= 1530 characters
e

Phone column data

string | null
<= 1530 characters
callback_data

String which will be send back to your endpoint. E.g. it can be usable to pass your system message id.

string | null
<= 36 characters

Phones resource updated

Phones list by group

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
id

Phone ID

string
phone
required

Phone number

string
<= 30 characters
a

Phone column data

string | null
<= 1530 characters
b

Phone column data

string | null
<= 1530 characters
c

Phone column data

string | null
<= 1530 characters
d

Phone column data

string | null
<= 1530 characters
e

Phone column data

string | null
<= 1530 characters
callback_data

String which will be send back to your endpoint. E.g. it can be usable to pass your system message id.

string | null
<= 36 characters
subscribed_at

Timestamp when user was subscribed by a link

integer | null
unsubscribed_at

Timestamp when user was unsubscribed by a link

integer | null
unsubscribe_reason

Unsubscribe reasons:

  • 1 - I never subscribed
  • 2 - Too many messages
  • 3 - I am not interested
  • 4 - Content is incomprehensible
  • 5 - I don’t like your company
  • 6 - Other
integer | null

Invalid input

Client ID or API key isn’t active or invalid!

Account isn’t activated. Please wait or contact to support!

Resource not found

The request was well-formed but was unable to be followed due to semantic errors

IP address was temporary blocked, because during short time from it was sent many request with invalid credentials. Please wait and try later.