Edit

To edit an existing library you need to execute a PATCH request against the /libraries/:id endpoint.

The id uniquely identifies the library and you can find it in the create library response.

You can update the name and external_id of the existing library.

Request

curl --request PATCH \
  --header "Content-Type: application/json" \
  --url https://api.digitalsamba.com/api/v1/libraries/45d125d8-bac9-43a5-a6a8-311a5433239d \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
  --data '{"name": "This is the new name"}'

Response (200 OK)

{
    "id": "45d125d8-bac9-43a5-a6a8-311a5433239d",
    "external_id": null,
    "name": "This is the new name",
    "source": "api",
    "created_at": "2024-10-07T11:24:52Z"
}

Last updated