Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

ACS adobe.io REST API - PUT operation

Avatar

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jonasn92134656
Level 3

05-07-2018

Hi,

According to the API documentation it should be possible to use the PUT operation in the REST interface.

I am getting "Error rc=-2003" when sending PUT. What are the prerequisites to use it?

The use case is updating or inserting a record in a resource connected to the profile:

PUT https://mc.adobe.io/{{tenant}}/campaign/profileAndServicesExt/cusCustomResource/

With a payload containing each of the attributes in the schema.

Regards,

Jonas

Replies

Avatar

Avatar
Give Back
Employee
anshshar
Employee

Likes

2 likes

Total Posts

10 posts

Correct Reply

2 solutions
Top badges earned
Give Back
Boost 1
Affirm 1
View profile

Avatar
Give Back
Employee
anshshar
Employee

Likes

2 likes

Total Posts

10 posts

Correct Reply

2 solutions
Top badges earned
Give Back
Boost 1
Affirm 1
View profile
anshshar
Employee

06-07-2018

Hi Jonas

Quick question : Are you trying to update all the properties or a specific one?

Per documentation you should use PATCH in case you want to apply updates to only the specified property and keeps the pre-existing value unmodified while in case you are using PUT , all properties needs to be specified.

Could you please try to use Patch in case you trying to update a specific value and see if that works for you?

You may also want to refer to below documentation for further clarification :

https://docs.campaign.adobe.com/doc/standard/en/api/ACS_API.html#get-post-patch-delete

and

https://docs.campaign.adobe.com/doc/standard/en/api/ACS_API.html#updating-profiles

Additionally , I found another article where you may want to read more on prerequisites and steps you need to follow : Using Adobe Campaign Standard APIs to maximize your cross-channel campaigns

Let me know if this helps.

Regards
Anshul Sharma

Avatar

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jonasn92134656
Level 3

09-07-2018

Hello Anshul,

As I mentioned I'm trying to update all properties.

PATCH and POST are working as expected.

The article you refer to doesn't mention PUT at all. Can you supply any examples where PUT is used with the API? I seem to be getting "Error rc=-2003" regardless of what parameters I send using PUT.

The way PUT is typically used in REST interfaces is to "insert or update" an entity, how would I go about using PUT in the adobe.io interface to achieve that?

Regards,

Jonas

Avatar

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
pablo_rosero1
Level 10

27-11-2018

Hi Jonas,

REST and JSON concepts are used for Adobe Campaign Standard API (view documentation) functionality.

  • readOnly: true/false. If true, it's not possible to insert this field in a payload during a PATCH or a PUT operation.

Make sure it's not readOnly.

I hope this helps!

All the best,

Pablo

Avatar

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jonasn92134656
Level 3

30-11-2018

Hi Pablo,

Your response doesn't seem to have anything with my question to do. See my previous response to Anshul.

Regards,

Jonas

Avatar

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
pablo_rosero1
Level 10

03-12-2018

Hi Jonas,

Did you confirm is not set to readOnly to be able to use PUT?

I'll see if others can help:

Adhiyan

Garima Gakhar

Vipul Raghav

All the best,

Pablo

Avatar

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jonasn92134656
Level 3

04-12-2018

Hi Pablo,

Yes, nothing is set to readOnly.

Regards,

Jonas