Create User API Call: Value cannot be null. Parameter name: instance

Hey guys,

Im trying to create a user via an API call to /api/users endpoint but am getting back an error stating: Error 500. Value cannot be null. Parameter name: instance.

Im just passing in the following as my header: {“X-Octopus-ApiKey”: “{0}”.format(octopus_apikey), “DisplayName”: “{0}”.format(name), “Username”: “{0}”.format(name)}

this is all within Python using the requests library. What am I missing here for creating a user?

Thanks
Flynn

Bah, spoke just to soon. For anyone creating Users via the API in python make sure you passing in the API key in the header and the JSON body as the data field within the POST action.

This can be closed :slight_smile: