Shawn Johnson
Posts: 0
Joined: Wed Jan 15, 2014 4:17 pm

issues updating collection with pointers with restful call

i created a database service to create entries in my collection where i have to pointers.

When I test the service, it works but when I try to update via postman
I get the following error

{
"code": "DBSC234",
"description": "Creation and modification objects with system fields not allowed."
}

Here is my headers and json objects Image

I need to create postman files for another developer to be able to implement the service restful calls

not sure why i am getting this error

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

issues updating collection with pointers with restful call

Hi Shawn,

Did you get session token using postman (doing login request)?

Shawn Johnson5765444
Posts: 0
Joined: Wed Apr 23, 2014 9:14 pm

issues updating collection with pointers with restful call

Yes I did get a session token

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

issues updating collection with pointers with restful call

Shawn,

You seem to use an incorrect request. You cannot update more than one field at once, so you'll need to use this URL:

codehttps://api.appery.io/rest/1/db/collections/collectionName/objectId/code

Where 'collectionName' is a collection name,
'objectId' is an object ID.

Pass all the parameters you want to change as form-data.

Shawn Johnson
Posts: 0
Joined: Wed Jan 15, 2014 4:17 pm

issues updating collection with pointers with restful call

sorry for the confusion I am trying to create entries in the collection. Not update them. I am doing this via POST.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

issues updating collection with pointers with restful call

Shawn,

The just pass all the needed fields, as как form-data and do not pass an ID (it is generated automatically).

You can still send only 1 object in one request.

Shawn Johnson
Posts: 0
Joined: Wed Jan 15, 2014 4:17 pm

issues updating collection with pointers with restful call

That does not seem to work,

I get an error
code": "DBSC007",
"description": "Serialization error"
Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

issues updating collection with pointers with restful call

Hi Shawn,

Do you have these collection columns (_users, activites) ? Please try recreating session token.

Shawn Johnson
Posts: 0
Joined: Wed Jan 15, 2014 4:17 pm

issues updating collection with pointers with restful call

Yes, I do

Image

I tried updating the session token

I also tried changing the "_users", to "user_id"

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

issues updating collection with pointers with restful call

Hi Shawn,

Why do you pass different data in service test and in Postman? If we understand you correctly, you want to do the same in Postman, right?

Return to “Issues”