{
  "algorithm": {
    "parameters": [
      {
        "name": "id",
        "type": "string"
      },
      {
        "name": "instance",
        "type": "CreditLimit"
      }
    ],
    "statements": [],
    "typeReturn": "CreditLimit",
    "variables": []
  },
  "routing": {
    "method": "POST",
    "parameters": [
      {
        "bind": "id",
        "in": "Path",
        "name": "id",
        "remarks": "Party role id"
      },
      {
        "bind": "instance",
        "in": "Body",
        "name": "instance",
        "remarks": "Credit Limit Reference"
      }
    ],
    "path": "/partyRoles/{id}/creditLimits",
    "remarks": "Add a credit limit",
    "responses": [
      {
        "httpStatus": "200",
        "remarks": "OK"
      },
      {
        "httpStatus": "201",
        "remarks": "OK"
      },
      {
        "errorName": "BadRequest",
        "httpStatus": "400",
        "remarks": "Bad Request"
      },
      {
        "errorName": "Unauthorized",
        "httpStatus": "401",
        "remarks": "Unauthorized"
      },
      {
        "errorName": "Forbidden",
        "httpStatus": "403",
        "remarks": "Forbidden"
      },
      {
        "errorName": "NotFound",
        "httpStatus": "404",
        "remarks": "Not found"
      }
    ]
  }
}