简体   繁体   中英

Linkedin Api to delete creative unable to call (getting 500)

Trying to make a call to linkedin api https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-creatives-new?view=li-lms-2022-10&tabs=http#delete-a-creative

to delete a creative however am receiving a 500 error

{
    "code": "GATEWAY_INTERNAL_ERROR",
    "message": "Gateway Internal Error"
}

body of the request is:

    "patch": {
        "$set": {
            "status": "PENDING_DELETION"
        }
    }
}

as per the documentation passed the header

X-RestLi-Method

as

DELETE

The issue was field name

"intendedStatus": "PENDING_DELETION"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM