Skip to content

HttpError while trying to change entity #88

@mfizyczka

Description

@mfizyczka

Based on https://proknow-python.readthedocs.io/en/latest/api/workspaces.html#proknow.Workspaces.WorkspaceItem.update_entities I am trying to change image_set_id & structure_t_id for a plan and dose.

workspace = pk.workspaces.resolve('Pinnacle')
patient = pk.patients.lookup('Pinnacle', [patientId])[0].get()
workspace.update_entities({
    'image_set_id': '6645e5385a80f02eafbb44e48bbc16dc'
}, patient.find_entities(type='plan'))

I am getting error: "HttpError(422, 'child "updated" fails because ["image_set_id" is not allowed]')".
Can this be done? If so, how?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions