Change file name via API

Hi. I try to change file name using API, but I can't. 

I tried:

curl -X 'PUT' \
'site/.../1111' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"name":"test"
}'

And I got: 

    <ref>403</ref>
    <summary>Validation failed/ Forbidden</summary>

If I try "documentname" instead of "name" I got:
    <ref>400</ref>
    <summary>Request resource or xml is not valid</summary>
I will greatly appreciate your help.
Parents
  • 0
    Thomson Reuters Thomson Reuters staff member
    in reply to Maria Sobieraj-Nowak

    Hello,

    Could you please provide the name of the application?

    Thank you!

  • +1
    Thomson Reuters Thomson Reuters staff member
    in reply to Maria Sobieraj-Nowak

    Hi Maria,

    To update the filename in HighQ, please try using the following Curl command:

    curl -X 'PUT' \
    'beta.highq.com/.../001' \
    -H 'accept: */*' \
    -H 'Content-Type: application/xml' \
    -d '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <file>
    <filename>Sample</filename>
    </file>'

    Thank you!

  • Reply
    Children
    No Data