create Contact Attachment By File Name

PUT {{baseUrl}}/Contacts/:ContactID/Attachments/:FileName

Request Body

["<", "b", "y", "t", "e", ">"]

HEADERS

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;a5eddf71-86aa-42f5-99e2-0aaf9caf96b6&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1551484292734)/&quot;,&quot;Attachments&quot;:[{&quot;AttachmentID&quot;:&quot;27e37b01-6996-4ebe-836c-95fd472ad674&quot;,&quot;FileName&quot;:&quot;sample5.jpg&quot;,&quot;Url&quot;:&quot;https://api.xero.com/api.xro/2.0/Contacts/8138a266-fb42-49b2-a104-014b7045753d/Attachments/sample5.jpg&quot;,&quot;MimeType&quot;:&quot;image/jpg&quot;,&quot;ContentLength&quot;:2878711}]}