I want to create a pdf document in a repository, but the object is getting created as a_content_type=' irm-pdf'
1. If you import a content with the request header Content-Type (mime_type), the REST server will look up the format table for the specified mime_type. If there are more than one formats for the mime_type, the REST server picks up one.
2. If you do want to make mime <--> format one one mapping, you can configure rest-api-runtime.properties file to set the mime to format mapping.
3. The other approach is to set a format query parameter in the POST request, e.g. ?format=pdf. This parameter will override the request header Content-Type.
at step 4 tells more details.