POST api/v1/portals/{portalUid}/customer/candidates/{candidateGuid}/compliance/{complianceGuid}/attachments

Create a new attachment for the candidate and given compliance

Request Information

URI Parameters

NameDescriptionTypeAdditional information
portalUid

the customer portal

globally unique identifier

Required

candidateGuid

the candidate we are uploding an attachment for

globally unique identifier

Required

complianceGuid

the type of compliance item we are uploding to

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

the uploaded model

AttachmentViewModel
NameDescriptionTypeAdditional information
Binary

The binary.

Collection of byte

None.

FileName

The name of the file.

string

None.

ContentType

The type of the content.

string

None.

Uid

The GUID.

globally unique identifier

None.

Links

The links.

Collection of Link

None.

DateUpdated

Last time the record was updated

date

None.

UpdatedBy

Who updated the record last

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Binary": "QEA=",
  "FileName": "sample string 1",
  "ContentType": "sample string 2",
  "Uid": "8b0bdf63-6056-4792-a539-cb0e537f73fb",
  "Links": [
    {
      "Href": "http://webapihelppage1.com",
      "Method": "sample string 2",
      "Rel": "sample string 3",
      "Title": "sample string 4",
      "Type": "sample string 5"
    },
    {
      "Href": "http://webapihelppage1.com",
      "Method": "sample string 2",
      "Rel": "sample string 3",
      "Title": "sample string 4",
      "Type": "sample string 5"
    }
  ],
  "DateUpdated": "2025-10-27T13:09:07.4335588+00:00",
  "UpdatedBy": "sample string 4"
}

application/xml, text/xml

Sample:
<AttachmentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.ViewModels">
  <DateUpdated>2025-10-27T13:09:07.4335588+00:00</DateUpdated>
  <Links xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
    <d2p1:Link>
      <d2p1:Href>http://webapihelppage1.com/</d2p1:Href>
      <d2p1:Method>sample string 2</d2p1:Method>
      <d2p1:Rel>sample string 3</d2p1:Rel>
      <d2p1:Title>sample string 4</d2p1:Title>
      <d2p1:Type>sample string 5</d2p1:Type>
    </d2p1:Link>
    <d2p1:Link>
      <d2p1:Href>http://webapihelppage1.com/</d2p1:Href>
      <d2p1:Method>sample string 2</d2p1:Method>
      <d2p1:Rel>sample string 3</d2p1:Rel>
      <d2p1:Title>sample string 4</d2p1:Title>
      <d2p1:Type>sample string 5</d2p1:Type>
    </d2p1:Link>
  </Links>
  <Uid>8b0bdf63-6056-4792-a539-cb0e537f73fb</Uid>
  <UpdatedBy>sample string 4</UpdatedBy>
  <Binary>QEA=</Binary>
  <ContentType>sample string 2</ContentType>
  <FileName>sample string 1</FileName>
</AttachmentViewModel>