Skip to content

Delete reference ​

Removes an existing reference from a todo.

Note: This endpoint requires a user-bound OAuth token. A plain client_credentials token without a bound user is rejected with 400 invalid_request.

Note: Only the link is removed. The referenced record itself remains untouched.

Request ​

DELETE /api/oauth/v2/resource/todos/{uuid}/references/{referenceUuid}

HeaderValue
AuthorizationBearer {access_token}

URL parameters ​

ParameterTypeRequiredDescription
uuidstringYesUnique todo ID
referenceUuidstringYesUnique reference ID

Response ​

Success (200 OK) ​

json
{
  "data": {
    "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "type": "MedicalDiagnosis",
    "target": "c3d4e5f6-a7b8-9012-cdef-234567890123"
  }
}

Response fields ​

See List references for the full field description of the object. The response contains the removed reference.

Beispiele
bash
curl -X DELETE "https://my.offisy.at/api/oauth/v2/resource/todos/b2c3d4e5-f6a7-8901-bcde-f01234567890/references/b2c3d4e5-f6a7-8901-bcde-f01234567890" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors ​

StatusCodeDescription
400validation_errorTodo is already deleted
400invalid_requestAccess token without user context
401invalid_clientInvalid or missing access token
403insufficient_scopeScope todos not present
404not_foundReference not found, referenceUuid is not a valid UUID, or the reference belongs to a different todo

Offisy GmbH