Forum Discussion

b_poplin's avatar
b_poplin
Expert
11 years ago

api blog article post labels

Hello,

 

When submitting a blog article with "freeform-and-predefined" labels, even when I submit the API using a "predefined" label it is creating a new duplicate label.

 

Example API:

/restapi/vc/blogs/id/[id]/messages/post

 

Example Form Request:

message.subject some good subject
message.body using myself as a predefined label
label.labels Myself

 

Note: Myself was an existing label, but this upload creates another "Myself" label.

 

I am not seeing this behavior with "freeform-only" or "predefined-only" using same API request.  How do you prevent creating a duplicate label?

 

Thanks,

Britt

  • Apologies... this appears to be an endpoint issue on our end where we are not filtering out the duplicates between:

    restadmin("/blogs/id/${nodeId}/labels").labels

    and

    restadmin("/blogs/id/${nodeId}/settings/name/label.predefined_labels")

     

    before displaying

  • Apologies... this appears to be an endpoint issue on our end where we are not filtering out the duplicates between:

    restadmin("/blogs/id/${nodeId}/labels").labels

    and

    restadmin("/blogs/id/${nodeId}/settings/name/label.predefined_labels")

     

    before displaying