POST api/CompanyCategory/Assign

Post list of Company category.

Request Information

URI Parameters

None.

Body Parameters

Collection of ApiAssignCategory
NameDescriptionTypeAdditional information
id_company

integer

None.

add

Collection of integer

None.

remove

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id_company": 1,
    "add": [
      1,
      2
    ],
    "remove": [
      1,
      2
    ]
  },
  {
    "id_company": 1,
    "add": [
      1,
      2
    ],
    "remove": [
      1,
      2
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfApiAssignCategory xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ApiAssignCategory>
    <id_company>1</id_company>
    <add>
      <int>1</int>
      <int>2</int>
    </add>
    <remove>
      <int>1</int>
      <int>2</int>
    </remove>
  </ApiAssignCategory>
  <ApiAssignCategory>
    <id_company>1</id_company>
    <add>
      <int>1</int>
      <int>2</int>
    </add>
    <remove>
      <int>1</int>
      <int>2</int>
    </remove>
  </ApiAssignCategory>
</ArrayOfApiAssignCategory>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.