Services relating to submission attachments

Supported Formats

json

GET /api/v2/rp/buildings/:rp_building_id/attachments/references
Submission attachment available references.

Supported Formats

json

Errors

Code Description
422 Unprocessable Entity - The specified parameters MUST be valid for each service call.
401 Unauthorized

Params

Param name Description
token
required

The token for user authentication.

Validations:

  • Must be a String


GET /api/v2/rp/buildings/:rp_building_id/attachments/:id/download
Download submission attachment file.

Supported Formats

json

Errors

Code Description
422 Unprocessable Entity - The specified parameters MUST be valid for each service call.
401 Unauthorized

Params

Param name Description
token
required

The token for user authentication.

Validations:

  • Must be a String


GET /api/v2/rp/buildings/:rp_building_id/attachments
All submission attachments.

Supported Formats

json

Errors

Code Description
422 Unprocessable Entity - The specified parameters MUST be valid for each service call.
401 Unauthorized

Params

Param name Description
token
required

The token for user authentication.

Validations:

  • Must be a String


GET /api/v2/rp/buildings/:rp_building_id/attachments/:id
One submission attachment.

Supported Formats

json

Errors

Code Description
422 Unprocessable Entity - The specified parameters MUST be valid for each service call.
401 Unauthorized

Params

Param name Description
token
required

The token for user authentication.

Validations:

  • Must be a String


POST /api/v2/rp/buildings/:rp_building_id/attachments
New Submission Attachment.

Supported Formats

json

Errors

Code Description
401 Unauthorized
422 Unprocessable Entity

Params

Param name Description
token
required

The token for user authentication.

Validations:

  • Must be a String

rp_submission_attachment
required

The submission attachment.

Validations:

  • Must be a Hash

rp_submission_attachment[attachment]
required

The uploaded file.

Validations:

  • Must be a File

rp_submission_attachment[attachment_description]
required

The description.

Validations:

  • Must be a String

rp_submission_attachment[attachment_other]
optional

The “Other (Please Specify)” description.

Validations:

  • Must be a String

rp_submission_attachment[attachment_reference_id]
required

Validations:

  • Must be a Integer

rp_submission_attachment[attachment_reference_type]
required

Validations:

  • Must be a String


DELETE /api/v2/rp/buildings/:rp_building_id/attachments/:id
Delete one submission attachment.

Supported Formats

json

Errors

Code Description
422 Unprocessable Entity - The specified parameters MUST be valid for each service call.
401 Unauthorized

Params

Param name Description
token
required

The token for user authentication.

Validations:

  • Must be a String