I am trying to activate a content type in a space using PUT request as shown in the API docs, But it is giving me version mismatch error.
Someone please help me with this.
I solved it!
Every time you send a CURL PUT request, in the header you send a parameter X-Contentful-Version with the request. The number mentioned in the API docs is 11. But every time you activate a content type it changes randomly up to 15, as per my testing. So better use the predefined functions given in the API docs instead of a CURL PUT request.