Notiz aktualisieren
put
/api/v1/notes/{id}
Sicherheit
Parameter
| Name | In | Typ | Details | |
|---|---|---|---|---|
id |
path |
integer
|
Pflicht | Ressourcen-ID |
Request-Body Pflicht
application/json
Schema
{
"type": "object",
"properties": {
"description": {
"type": "string"
},
"is_pinned": {
"type": "boolean"
}
}
}
Antworten
200
Notiz aktualisiert
application/json
{
"allOf": [
{
"title": "API envelope",
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"errors": {
"nullable": true
},
"meta": {
"type": "object",
"nullable": true,
"additionalProperties": true
}
}
},
{
"type": "object",
"properties": {
"data": {
"title": "Note",
"type": "object",
"required": [
"id",
"description",
"is_pinned"
],
"properties": {
"id": {
"type": "integer"
},
"description": {
"type": "string"
},
"deals_id": {
"type": "integer",
"nullable": true
},
"is_pinned": {
"type": "boolean"
},
"created_by": {
"type": "integer",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
}
}
}
}
}
]
}
401
Missing or invalid API key
application/json
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"example": false
},
"message": {
"type": "string",
"example": "Missing API key (X-Api-Key)"
}
}
}
404
Resource not found
application/json
{
"title": "API envelope",
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"errors": {
"nullable": true
},
"meta": {
"type": "object",
"nullable": true,
"additionalProperties": true
}
}
}
422
Validation failed
application/json
{
"title": "API envelope",
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"errors": {
"nullable": true
},
"meta": {
"type": "object",
"nullable": true,
"additionalProperties": true
}
}
}