I’m new to trying to use the API.
I’m trying to create a new ticket once some action is taken on an existing ticket. In my case when we offboard someone, after they have been offboarded I need to file tickets and assign to different business owners so they can remove the user from their systems.
I created a Web Request as follows:
Request Type: Post
Endpoint: https://domain.freshservice.com/api/v2/tickets
Credentials: Inline Credentials
Authentication Type: Basic Auth
Username: my API Key
Password: X (thank you
Body:
{
"description": "Details about the issue...",
"subject": "Support Needed...",
"source": 2,
"email": "myemail@mydomain.com",
"priority": 1,
"status": 2,
"group_id": 999999999999,
"System": "Salesforce"
}
The issue I have is System is a required ticket field. If I don’t include it in the body I get an error stating :
{
"description": "Validation failed",
"errors": d
{
"field": "system",
"message": "It should be one of these values: 'Help Desk,Salesforce,Dialpad'",
"code": "missing_field"
}
]
}
If I do include it as above in the Body I get an error:
{
"description": "Validation failed",
"errors": V
{
"field": "System",
"message": "Unexpected/invalid field in request",
"code": "invalid_field"
}
]
}
Not sure what I’m doing wrong that it sees it required but doesn’t like what I’m typing in, so is it some type of encoding error?