POST api/providers/{pid}/locations/{locationId}/associate-custom-fields

Associa filas a campos adicionais já existentes.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pid

string

None.

locationId

string

None.

Body Parameters

Collection of AssociateCustomFieldCommand
NameDescriptionTypeAdditional information
ServiceConfigId

integer

Required

CustomFieldId

integer

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "serviceConfigId": 1,
    "customFieldId": 2
  },
  {
    "serviceConfigId": 1,
    "customFieldId": 2
  }
]

application/xml, text/xml

Sample:
<ArrayOfAssociateCustomFieldCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Filazero.Core.ServicingBoundedContext.Application.Commands">
  <AssociateCustomFieldCommand>
    <CustomFieldId>2</CustomFieldId>
    <ServiceConfigId>1</ServiceConfigId>
  </AssociateCustomFieldCommand>
  <AssociateCustomFieldCommand>
    <CustomFieldId>2</CustomFieldId>
    <ServiceConfigId>1</ServiceConfigId>
  </AssociateCustomFieldCommand>
</ArrayOfAssociateCustomFieldCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.