Affiliation Endpoint question

Trying to use latest/characters/affiliation/ endpoint and I get {“error”:"‘characters’ is required, Invalid body JSON type"} when putting a single character id in “characters”. I’m sure this will be a simple solution for someone :slight_smile:

Guessing it’s because the output isn’t formatted as JSON

[
0
]

The body is just an array of character_ids with Content-Type header of application/json.

Example curl:

curl -X POST \
  https://esi.tech.ccp.is/v1/characters/affiliation/ \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -d '[2047918291]'

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.