person

Get combined credits

Returns the person's combined credits based on the provided personId in a JSON object.

get/person/{personId}/combined_credits

Request

  • Base URL: http://localhost:5055/api/v1
  • URL: http://localhost:5055/api/v1/person/{personId}/combined_credits
  • Auth: one of:
    • API key in cookie connect.sid
    • API key in header X-Api-Key

Path parameters

personIdnumber required
Example:287

Query parameters

languagestring
Example:en

Response

Returned combined credits

idnumber

Example response

{
  "cast": [
    {
      "id": 1,
      "mediaInfo": {
        "requests": [
          {
            "id": 123,
            "createdAt": "2020-09-12T10:00:27.000Z",
            "updatedAt": "2020-09-12T10:00:27.000Z",
            "requestedBy": {
              "id": 1,
              "email": "hey@itsme.com",
              "userType": 1,
              "createdAt": "2020-09-02T05:02:23.000Z",
              "updatedAt": "2020-09-02T05:02:23.000Z",
              "requestCount": 5
            },
            "modifiedBy": {
              "id": 1,
              "email": "hey@itsme.com",
              "userType": 1,
              "createdAt": "2020-09-02T05:02:23.000Z",
              "updatedAt": "2020-09-02T05:02:23.000Z",
              "requestCount": 5
            }
          }
        ],
        "createdAt": "2020-09-12T10:00:27.000Z",
        "updatedAt": "2020-09-12T10:00:27.000Z"
      }
    }
  ],
  "crew": [
    {
      "id": 1,
      "mediaInfo": {
        "requests": [
          {
            "id": 123,
            "createdAt": "2020-09-12T10:00:27.000Z",
            "updatedAt": "2020-09-12T10:00:27.000Z",
            "requestedBy": {
              "id": 1,
              "email": "hey@itsme.com",
              "userType": 1,
              "createdAt": "2020-09-02T05:02:23.000Z",
              "updatedAt": "2020-09-02T05:02:23.000Z",
              "requestCount": 5
            },
            "modifiedBy": {
              "id": 1,
              "email": "hey@itsme.com",
              "userType": 1,
              "createdAt": "2020-09-02T05:02:23.000Z",
              "updatedAt": "2020-09-02T05:02:23.000Z",
              "requestCount": 5
            }
          }
        ],
        "createdAt": "2020-09-12T10:00:27.000Z",
        "updatedAt": "2020-09-12T10:00:27.000Z"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 21 revisions of this API.