Update one sender by their ID
Updates one specific sender with new data.
name, iso6523_scheme and iso6523_identifier must be present in the data.
iso6523_scheme and iso6523_identifier cannot be changed to a value that already exists.
website and email are optional, but must be valid. If they are not present, they will be removed from the record.
Method and endpoint:
PUT https://peppol-senders.nl/api/senders/<sender_id>/
Headers:
Accept: application/json
Content-Type: application/json
Authorization: Token <your auth token>
Success example
Post data:
{
"iso6523_identifier": "00000002",
"iso6523_scheme": "0106",
"name": "Example Company"
}
Response code: 200
Response data:
{
"api_url": "https://peppol-senders.nl/api/senders/5026/",
"created_on": "2018-11-28T22:59:44.987106Z",
"email": null,
"email_verified": false,
"id": 5026,
"iso6523_identifier": "00000002",
"iso6523_scheme": 106,
"iso6523_verified": true,
"name": "Example Company",
"updated_on": "2018-11-28T23:12:03.985978Z",
"website": null
}
Error example
Post data:
{
"email": "bademail",
"iso6523_identifier": "00000002",
"iso6523_scheme": "0106",
"name": "Example Company",
"website": "badwebsite"
}
Response code: 400
Response data:
{
"email": [
"Enter a valid email address."
],
"website": [
"Enter a valid URL."
]
}