POST /api/v2/premium-service-attachments
Create a Premium Service Request Attachment

Params

Param name Description
data
required

Corporate Attachment information

Validations:

  • Must be a Hash

data[type]
required

Validations:

data[attributes]
required

Validations:

  • Must be a Hash

data[attributes][source]
required

the file in data URL format

Validations:

  • Must be a String

data[attributes][source-file-name]
required

Validations:

  • Must be a String

data[attributes][source-file-size]
optional , nil allowed

Validations:

  • Must be a Integer

data[relationships]
required

Validations:

  • Must be a Hash

data[relationships][corporate_event]
required

Validations:

  • Must be a Hash

data[relationships][corporate_event][data]
required

Validations:

  • Must be a Hash

data[relationships][corporate_event][data][type]
required

Should be `corporate-events`

Validations:

  • Must be a String

data[relationships][corporate_event][data][id]
required

Corporate event ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.


DELETE /apiv2/premium-service-attachments/:id
Delete a Premium Service Request Attachment

Params

Param name Description
id
required

Premium Service Attachment ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.