These are chat archives for collectiveaccess/support

Apr 2016
Apr 15 2016 13:43
Hi all :)
I'm trying to add representations using the api, anyone that can help me with that?
Apr 15 2016 14:23

I use the following json

"intrinsic_fields": {
"media": "",
"type_id": "142"
"related": {
"ca_objects": {
"object_id": "24"

but i keep getting the same error : "Type must be specified"
Apr 15 2016 14:47
is 142 a valid representation type?
Like, an item in the object_representation_types list?
You can use list item idnos too, you know. Juggling these numeric IDs is a pain
So you could do "type_id" : "front", for instance
Apr 15 2016 15:24
yes, its a valid number
if i try "front" i get the following errors:
[0] =>
string(39) "Value front is not in list object_types"
[1] =>
string(22) "Type must be specified"
so this type must refer to something else i suppose?
Apr 15 2016 17:10
Oh you're trying to add an object, not a representation!
Try using the ca_object_representations endpoint instead