Finesse 9 API Edit Contact - HTTP 415 - Unsupported Media Type

Version 1

    Subject: RE: Finesse 9 API Edit Contact - HTTP 415 - Unsupported Media Type
    Replied by: Absaar Javed on 27-06-2013 07:13:39 AM
    While making the http request do you have mentioned the content type to be application/xml ?
    This document was generated from CDN thread

    Created by: Sofia Oliveira on 27-06-2013 07:04:22 AM
    Hi,

    We are triyng to edit a Team Phone Book Contact throught the finesse API Contact\Edit Contac and we are getting the error 415 - Unsupported Media Type
    This error is not documented in finesse API Developer  Guide, has anyone got this error before? Do you know the causes?

    URL:  [url=http://<finesse servere>finesse/api/PhoneBook/18/Contact/38]http://<finesse servere>finesse/api/PhoneBook/18/Contact/38
     Body:
    <Contact>
    <description>desc</description>
    <firstName>patos</firstName>
    <lastName>donald</lastName>
    <phoneNumber>12345</phoneNumber>
    </Contact>
     
    Method: POST
    Output:
    HTTP Status 415 - Unsupported Media Type
    type: Status report
    message: Unsupported Media Type
    description: The server refused this request because the request entity is in a format not supported by the requested resource for the requested method (Unsupported Media Type).

    Thanks,
    Sofia

    Subject: Re: New Message from Sofia Oliveira in Finesse - General Questions: Finesse
    Replied by: Absaar Javed on 27-06-2013 07:45:58 AM
    On 6/27/2013 5:04 PM, Cisco Developer Community Forums wrote:
    > Sofia Oliveira has created a new message in the forum "General
    > Questions":
    > -------------------------------------------------------------- Hi,
    >
    > We are triyng to edit a Team Phone Book Contact throught the finesse
    > API Contact\Edit Contac and we are getting the error 415 - Unsupported
    > Media Type
    > This error is not documented in finesse API Developer  Guide, has
    > anyone got this error before? Do you know the causes?
    >
    > URL:  [url=http://<finesse
    > servere>finesse/api/PhoneBook/18/Contact/38]_http://<finesse
    > servere>finesse/api/PhoneBook/18/Contact/38_
    >  Body:
    > <Contact>
    > <description>desc</description>
    > <firstName>patos</firstName>
    > <lastName>donald</lastName>
    > <phoneNumber>12345</phoneNumber>
    > </Contact>
    >
    > Method: POST
    > Output:
    > HTTP Status 415 - Unsupported Media Type
    > *type: *Status report
    > *message: *Unsupported Media Type
    > *description: *The server refused this request because the request
    > entity is in a format not supported by the requested resource for the
    > requested method (Unsupported Media Type).
    >
    > Thanks,
    > Sofia
    > --
    > To respond to this post, please click the following link:
    > http://developer.cisco.com/web/finesse/community/-/message_boards/view_message/16656948
    > or simply reply to this email.
    It is because of not mentioning the Content Type.

    Subject: RE: Re: New Message from Sofia Oliveira in Finesse - General Questions: Fin
    Replied by: Sofia Oliveira on 08-07-2013 09:15:51 AM
    Absaar Javed:
    On 6/27/2013 5:04 PM, Cisco Developer Community Forums wrote:
    > Sofia Oliveira has created a new message in the forum "General
    > Questions":
    > -------------------------------------------------------------- Hi,
    >
    > We are triyng to edit a Team Phone Book Contact throught the finesse
    > API Contact\Edit Contac and we are getting the error 415 - Unsupported
    > Media Type
    > This error is not documented in finesse API Developer  Guide, has
    > anyone got this error before? Do you know the causes?
    >
    > URL:  [url=http://<finesse
    > servere>finesse/api/PhoneBook/18/Contact/38]_http://<finesse
    > servere>finesse/api/PhoneBook/18/Contact/38_
    >  Body:
    > <Contact>
    > <description>desc</description>
    > <firstName>patos</firstName>
    > <lastName>donald</lastName>
    > <phoneNumber>12345</phoneNumber>
    > </Contact>
    >
    > Method: POST
    > Output:
    > HTTP Status 415 - Unsupported Media Type
    > *type: *Status report
    > *message: *Unsupported Media Type
    > *description: *The server refused this request because the request
    > entity is in a format not supported by the requested resource for the
    > requested method (Unsupported Media Type).
    >
    > Thanks,
    > Sofia
    > --
    > To respond to this post, please click the following link:
    > http://developer.cisco.com/web/finesse/community/-/message_boards/view_message/16656948
    > or simply reply to this email.
    It is because of not mentioning the Content Type.

    Hi Abasar, it was that, problem solved. Thanks!