NextGen APIs

POST /work-orders/r1/work-orders/{workOrderId}/attachments

Http Verb

POST

Url

/work-orders/r1/work-orders/{workOrderId}/attachments

Permissions required

WorkOrder: Edit (fsm.core.workorder.edit)

Personally Identifiable Information (PII)

No

Sensitive Information

No

Last Modified Version

r1

Released since

2025 W2 (FSM 20.0)

Deprecated since


Removed since


Tech Tags


Business Logic

This API creates a new attachment related to the given work order. In addition, the attachment is also linked to the technical object of the work order.

Please note that if you want to create an attachment for a work order, the file must be created beforehand using the POST /documents/r1/files API.

Moreover beware that, the file

Header Parameters

Default.

Request Body Parameters

Field

Validations

Note

uuid



documentCategoryId

Referenced resource id existence check

This field is optional in the request payload. However, if it is not provided, a default value must be configured in the system settings (the value must not be null during processing)

Response documentation

Response payload fields

Field

Note

Example value

payload

 

 

Response error codes

NOT_FOUND, BASE_0001, DOCUMENTS_002