Edit
To edit an existing file you need to execute a PATCH request against the /libraries/:libraryId/files/:fileId endpoint.
The fileId uniquely identifies the file and the libraryId uniquely identifies the library.
You can update the name of the existing file.
Request
curl --request PATCH \
--header "Content-Type: application/json" \
--url https://api.digitalsamba.com/api/v1/libraries/45d125d8-bac9-43a5-a6a8-311a5433239d/files/0b20a544-d2d7-4c1b-b651-dc132a76a756 \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
--data '{"name": "newFileName.jpg"}'
Response (200 OK)
{
"id": "0b20a544-d2d7-4c1b-b651-dc132a76a756",
"name": "newFileName.jpg",
"type": "image",
"size": 1311689,
"source": "api",
"status": "completed",
"created_at": "2024-10-09T13:31:48Z"
}
Last updated