Skip to content

Claim the writer fence of an upload attempt.

POST
/api/artifacts/publications/{id}/attempts/{attempt}/claim
curl --request POST \
--url https://example.com/api/artifacts/publications/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/attempts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/claim \
--header 'Authorization: Bearer <token>' \
--header 'x-artifact-generation: 1' \
--header 'x-artifact-writer-fence: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0'

Bind the supplied writer fence to the exact current generation of an upload attempt and return the canonical writer identity.

id
required
string format: uuid

Publication id

attempt
required
string format: uuid

Upload attempt id

x-artifact-generation
required
integer format: int64

Canonical generation

x-artifact-writer-fence
required
string format: uuid

Client-supplied nonce, canonically bound by claim

Writer attempt claimed

Media typeapplication/json
object
attempt_id
required
string format: uuid
generation
required
integer format: int64
phase
required
string
Allowed values: open writing stored aborted expired cancelled settled
project_id
required
string format: uuid
publication_id
required
string format: uuid
size_bytes
required
integer format: int64
storage_revision
required
integer format: int64
writer_fence
string | null format: uuid

Example

{
"phase": "open"
}