Affiliation Endpoint question

esi

(Eric Lemmonte) #1

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:


(Eric Lemmonte) #2

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

[
0
]


(Blacksmoke16) #3

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]'

(system) #4

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