POST FlagManagement/AssociateFieldsWithFlag

Associates fields with a flag


Parameters

NameDescriptionAdditional information
request
The flag AssociateFieldsWithFlagRequest

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "FlagId": 1,
  "FieldIds": [
    "6d3e1760-abf9-4afa-bcf6-d5cd18b767fc",
    "69a6bae0-2019-440d-8857-878aeeb8d051",
    "ef76fe8d-5f74-41c0-8605-8a7562cb3ff1"
  ]
}

application/xml, text/xml

Sample:
<AssociateFieldsWithFlagRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Requests">
  <FieldIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>6d3e1760-abf9-4afa-bcf6-d5cd18b767fc</d2p1:guid>
    <d2p1:guid>69a6bae0-2019-440d-8857-878aeeb8d051</d2p1:guid>
    <d2p1:guid>ef76fe8d-5f74-41c0-8605-8a7562cb3ff1</d2p1:guid>
  </FieldIds>
  <FlagId>1</FlagId>
</AssociateFieldsWithFlagRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response body formats

NumericResponse of the outcome of the action

application/json, text/json

Sample:
{
  "Item": 1,
  "ResponseInformation": {
    "Errors": [
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      }
    ],
    "Status": 0,
    "Links": [
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      }
    ]
  }
}

application/xml, text/xml

Sample:
<NumericResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Responses">
  <ResponseInformation xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <Errors>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
    </Errors>
    <Links>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
    </Links>
    <Status>Failure</Status>
  </ResponseInformation>
  <Item xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">1</Item>
</NumericResponse>
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body