c-feist
December 14, 2023, 2:37pm
1
Is there a way to update a marketing email using the v3 markerting email API? I am currently getting a `405` response when calling PUT `/marketing/v3/emails/{id}`
I am able to get and create marketing emails using the v3 endpoint
GET `/marketing/v3/emails`
POST `/marketing/v3/emails`
Hi, @c-feist Can you share the following details, please?
an example request
it’s response
the error body
a link to the endpoint doc you are using (bonus)
This can help our community members better understand the root issue.
Thank you! — Jaycee
c-feist
December 18, 2023, 5:57pm
3
Hi @Jaycee_Lewis . See my responses inline:
curl -i -X PUT -H 'Authorization: Bearer CO2Fn....token' -H "Content-Type: application/json" -d '{ "name": "Updated email name" }' https://api.hubapi.com/marketing/v3/emails/149796562769
HTTP/2 405
date: Mon, 18 Dec 2023 17:54:57 GMT
cf-ray: 8379462448206826-SEA
cf-cache-status: DYNAMIC
allow: DELETE,GET,OPTIONS,PATCH
strict-transport-security: max-age=31536000; includeSubDomains; preload
vary: origin
access-control-allow-credentials: false
x-content-type-options: nosniff
x-envoy-upstream-service-time: 6
x-evy-trace-listener: listener_https
x-evy-trace-route-configuration: listener_https/all
x-evy-trace-route-service-name: envoyset-translator
x-evy-trace-served-by-pod: iad02/hubapi-td/envoy-proxy-57d4fb94bb-8l2q9
x-evy-trace-virtual-host: all
x-hubspot-correlation-id: dae524be-2c33-4130-a162-558b61d92cc6
x-request-id: dae524be-2c33-4130-a162-558b61d92cc6
x-trace: 2B2AF2441FFBA5920E22FB0C43EE9750E42AB94C8EE823B453BFC66A8C01
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=cH0iXLAcqz%2B4FzlyL7Z0aBLTLLvBoeIeh1%2FeHA%2BktOfS73Q5YYHP92U5qyZ2i8RwAZQ4NGcw8H9UuRpmcwjey6yF5Qt%2Fk2YDoJbKKb5rFZSvvKgFgzTBNzQAN12cmFku"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
server: cloudflare
@Jaycee_Lewis any updates on this?