Allows you to create a contact group

PUT {{baseUrl}}/ContactGroups

Request Body

{"ContactGroups"=>[{"Name"=>"<string>", "Status"=>"<string>", "ContactGroupID"=>"<uuid>", "Contacts"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, {"Name"=>"<string>", "Status"=>"<string>", "ContactGroupID"=>"<uuid>", "Contacts"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}]}

HEADERS

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

RESPONSES

status: OK

{&quot;Id&quot;:&quot;5afe53f9-2271-45b8-9767-88d023b71d34&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1551745740920)/&quot;,&quot;ContactGroups&quot;:[{&quot;ContactGroupID&quot;:&quot;d7a86b80-8dac-4d89-a334-9dcf5753676c&quot;,&quot;Name&quot;:&quot;Suppliers&quot;,&quot;Status&quot;:&quot;ACTIVE&quot;,&quot;Contacts&quot;:[],&quot;HasValidationErrors&quot;:false}]}