Details of the request:
- URI: api/v8.6/additionalfield/{ciId}?isGuId={isGuId}
- Type: PUT
-
Required headings:
- Content-Type: application/json
- Authorization: TOKEN
The URI structure of the request is implemented as follows:
- If it’s for CI: api/v8.6/additionalfield/IdCI?isGuId=False
- If by GuID: api/v8.6/additionalfield/GuID?isGuId=True
Parameters:
Name | Data type | Obligatory | Description |
---|---|---|---|
Id | Text | Yes | ID of the CI or GuId to be edited |
IsGuId | Boolean | yes | In case the Id that is sent is GuId the value will be “true”, if it corresponds to the Id of a CI then it will be “false” |
Note: In the body of the request, the Id that corresponds to the additional field to be edited is sent, this can be obtained by consulting additional fields described in the previous section.
Body of the petition:
Example:
[
{
"Id": 494,
"Value": "501"
},
…
]
Answer:
There is no response body, the validation of the result of the operation can be performed by analyzing the http code obtained: 200 OK for a successful operation.
Error messages:
Code | HTTP status | Error Message |
---|---|---|
400 | BadRequest | InvalidToken |
404 | BadRequest | InvalidUserId |
400 | BadRequest | NotFoundCiId |
400 | BadRequest | InvalidCiId |
400 | NotFound | InvalidCategoryId |
400 | NotFound | InvalidDateValue |
400 | NotFound | InvalidType |
400 | NotFound | InvalidDataElement |
400 | NotFound | InvalidBooleanValue |
400 | NotFound | InvalidNumericValue |
500 | InternalServerError | FailureUpdateAditionalFields |