/account/{account_id}/snippet/{id}

Updates a snippet

Updates a snippet

Base URL
https://<tenant>.dieagenturverwaltung.de/api/v2
Required Security
ApiKeyAuth (Authorization: Session Token)
Produces
application/json

Request

Path Parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID
idintegerYesSnippet ID

Body Parameters

NameTypeRequiredDescription
snippetapp.SnippetYesSnippet

Parameter Models

Inspect object parameters and nested model references without loading the full Swagger file in the browser.

snippetBody parameterapp.Snippet
account
No description.
account_id
integer
No description.
contents
No description.
created_at
integer
No description.
id
integer
No description.
is_default
boolean
No description.
label
string
No description.
modified_at
integer
No description.
small_account
No description.
subtype
No description.
type
No description.
cURL
curl -X PUT 'https://<tenant>.dieagenturverwaltung.de/api/v2/account/123/snippet/123' \
  -H 'Accept: application/json' \
  -H 'Authorization: Session Token' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "account": {},
  "account_id": 123,
  "contents": [
    {}
  ],
  "created_at": 123,
  "id": 123,
  "is_default": true,
  "label": "string",
  "modified_at": 123,
  "small_account": {},
  "subtype": "kv",
  "type": "headNote"
}'
Request Body (application/json)
{
  "account": {...},
  "account_id": 123,
  "contents": [
    {...}
  ],
  "created_at": 123,
  "id": 123,
  "is_default": true,
  "label": "string",
  "modified_at": 123,
  "small_account": {...},
  "subtype": "kv",
  "type": "headNote"
}

Responses

200OK
app.Snippetapplication/json
Example
{
  "account": {...},
  "account_id": 123,
  "contents": [
    {...}
  ],
  "created_at": 123,
  "id": 123,
  "is_default": true,
  "label": "string",
  "modified_at": 123,
  "small_account": {...},
  "subtype": "kv",
  "type": "headNote"
}
400Bad Request
rest_errors.Errorapplication/json
Example
{
  "code": 123,
  "extras": {...},
  "message": "string",
  "status_code": 123
}
500Internal Server Error
rest_errors.Errorapplication/json
Example
{
  "code": 123,
  "extras": {...},
  "message": "string",
  "status_code": 123
}