Skip to content

property 'contents' is not valid for 'SoftLayer_Ticket' when creating a ticket #1147

@acamacho82

Description

@acamacho82

Cannot create tickets with --body param, this happens when the slcli uses the REST endpoint.

It seems the contents in the code below needs to be removed since this property isn't in the datatype https://sldn.softlayer.com/reference/datatypes/SoftLayer_Ticket/

new_ticket = {
'subjectId': subject,
'contents': body,
'assignedUserId': current_user['id'],
'title': title,
}

Actual Behavior

$ slcli ticket create --title "Test::SLCI" --subject-id 1001 --body "Example"

SoftLayerAPIError(500): The property 'contents' is not valid for 'SoftLayer_Ticket'.

Environment Information

OS information: ubuntu 18.04, windows 10
softlayer-python version (slcli --version): 5.7.1, 5.7.2
end-point: REST

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions