Update an attachment
Updates an attachment. Set its type via type — either a predefined type ({ name }) or a custom, tenant-defined type ({ id }) — and/or update expiryDate and validFrom. Fields that are omitted are left unchanged; pass null for a date to clear it. The type must be allowed for all records the attachment is linked to: the predefined CV type can only be set on attachments linked to a candidate, and custom types define which record types they support. Attachments with platform-internal types are treated as not found.
Authorizations
API key for authentication. Get your API key from Settings → API Keys in your Spott dashboard.
Path Parameters
Body
The attachment type to set — a predefined type ({ name }) or a custom, tenant-defined type ({ id }). Omit to leave the type unchanged.
The date on which the attachment expires. Pass null to clear it.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$The date from which the attachment is valid. Pass null to clear it.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Response
Attachment updated successfully

