EN
Español
English
Português
    Close Parent Cases Related to Complementary Relationship

    Petition Details

    • URL Base: {host}/ASMSAPI/
    • URI: /api/v9/item/close/related/parent
    • Guy:PUT
    • Required Headers:

    • content-type: application/json
    • X-Authorization: Bearer {token}

    URL Description

    • {host}: It represents the domain of the environment in which the API is located.
    • ASMSAPI/: Fixed API prefix.
    • URI: Specific endpoint for the request.


    EXAMPLE URL:

    https://{host}/ASMSAPI/api/v9/item/close/related/parent
    


    Parameters

    Name Data type Obligatory Description
    childId Number Yes Identifier of the case that was closed.
    commentary Text Yes Comment which will be associated with all parent cases that can be closed.

    Body of the petition

    {
      "childId": 5648,
      "commentary": "Se soluciona caso hijo"
    }
    

    Answer

    {
       "content":[
          {
             "projectId": 1,
             "message": "Success",
             "idbyProject": "RF-240"
           }
       ],
       "totalItems": 1
    }
    
    

    Parameters Response

    Name Data type Description
    projectId Number Project ID.
    Message Text Indicates the error that may have occurred, when trying to close the case. If there is no error, “Success” returns.
    idbyProject Text Identifier by project of the case.

    Error messages

    Code HTTP status Error Message
    500 InternalServerError { ‘exceptionMessage’: ‘xxxxxxxxx’, ‘message’: ‘FailureCloseRelatedParent’, ‘serviceName’: ‘ItemREST’, ‘operation’: ‘CloseRelatedParent’ }