Skip to main content
PATCH
/
samples
/
{id}
/
expiration
Set sample expiration
curl --request PATCH \
  --url https://app.strandai.com/api/v1/samples/{id}/expiration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expiresAt": "2023-11-07T05:31:56Z",
  "neverExpire": true,
  "useOrgDefault": true,
  "reason": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "expiresAt": "2023-11-07T05:31:56Z",
  "retentionChangedAt": "2023-11-07T05:31:56Z",
  "retentionChangedBy": "<string>",
  "batchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

application/json

Provide exactly one of expiresAt, neverExpire: true, or useOrgDefault: true. neverExpire: true is sugar for expiresAt: null (custom). useOrgDefault: true clears the custom expiration and follows the org's default policy.

expiresAt
string<date-time> | null
neverExpire
boolean
useOrgDefault
boolean
reason
string
Maximum string length: 500

Response

Updated sample

id
string<uuid>
required
expiresAt
string<date-time> | null
expiresAtSource
enum<string> | null
Available options:
org_default,
custom,
null
retentionChangedAt
string<date-time> | null
retentionChangedBy
string | null
batchId
string<uuid>