新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

Error on the cUrl script for metadata

回答済み
新規投稿

コメント

1件のコメント

  • LoCortes

    Good afternoon ,

     

    if you look the documentation the URL would be something like:

     

    curl https://api.box.com/2.0/files/***number removed for privacy***1/metadata/enterprise/marketingCollateral \
    -H "Authorization: Bearer ACCESS_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{ "audience1": "internal", "documentType": "Q1 plans", "competitiveDocument": "no", "status": "active", "author": "Jones", "currentState": "proposal"}' \
    -X POST

     

    In your case, there is no body (-d part) and you have a -f that seems more related to file actions like update a document.

     

    Look at https://developer.box.com/reference#create-metadata to see exactly what it is needed.

     

    Regards 

    0
    コメントアクション パーマリンク

サインインしてコメントを残してください。