Facing error while creating message on survey monkey - surveymonkey

I am facing this error while creating messages in survey monkey.
{
"error": {
"id": 1000,
"name": "Bad Request",
"docs": "https://developer.surveymonkey.com/api/v3/#error-codes",
"message": "Unable to process the request with the provided input.",
"http_status_code": 400
}
}
Endpoint -> https://api.surveymonkey.com/v3/collectors/422848384/messages
json-body -> {
"type": "invite"
}

Related

Create Workforce Integration using the graph API

I am using this endpoint in POSTMAN: Endpoint: https://graph.microsoft.com/v1.0/teamwork/workforceIntegrations
with requst body
Request body:
{
"apiVersion": 1,
"displayName": "samplename",
"encryption": {
"protocol": "sharedSecret",
"secret": "someescretvalueasper the doc"
},
"isActive": true,
"supportedEntities": "shift",
"url": "sampleurl.com"
}
I have followed all steps as mentioned in the documentation here https://learn.microsoft.com/en-us/graph/api/workforceintegration-post?view=graph-rest-1.0&tabs=http
however I am getting this error
{
"error": {
"code": "BadRequest",
"message": "{\"error\":{\"title\":\"Something went wrong\",\"externalErrorMessage\":\"Bad Request\",\"externalSource\":\"ShiftBookingsFlow\",\"externalImageLink\":null,\"externalData\":null,\"code\":\"BadRequest\",\"message\":\"Sorry your change couldn’t be completed.\",\"details\":[],\"innererror\":{\"code\":\"WorkforceIntegrationError\"}}}",
"innerError": {
"date": "2022-12-18T23:47:36",
"request-id": "d8e370a1-1d63-4137-9b49-07c74df6861b",
"client-request-id": "d8e370a1-1d63-4137-9b49-07c74df6861b"
}
}
}
Can anyone help me understand what I am doing wrong over here?
I expect a 200 Ok response but it is giving 400 bad request.
Is there any pre-requirsite to this API?

create location in GMB , error PIN_DROP_REQUIRED, how to use the UI to provide a pin drop

I am testing on google auth playgound,any please help me out
{
"error": {
"status": "INVALID_ARGUMENT",
"message": "Request contains an invalid argument.",
"code": 400,
"details": [
{
"reason": "PIN_DROP_REQUIRED",
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"domain": "mybusinessbusinessinformation.googleapis.com",
"metadata": {
"field_mask": "storefront_address"
}
}
]
}
}
In some cases, Google will only let you edit an address via the Google Business Profile user interface (and not via the API): https://business.google.com

Error when set schedule for private video using Google APIs Explorer

Question: Why did I get this error? The error message is not informative/helpful. Please assist to solve.
I tried to simulate this on Google APIs Explorer:
https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.update
Part: status
{
"id": "3zZ1lCz-rp4",
"status": {
"privacyStatus": "private",
"publishAt": "2019-04-12T12:12:12.12Z"
}
}
But not working. Getting response:
{
"error": {
"errors": [
{
"domain": "youtube.video",
"reason": "invalidVideoMetadata",
"message": "The request metadata is invalid.",
"locationType": "other",
"location": "body"
}
],
"code": 400,
"message": "The request metadata is invalid."
}
}

Unable to update OneNote page content

I send a PATCH request to https://graph.microsoft.com/beta/me/onenote/pages/1-3e7c1460680d4fe28501792ccda64915!119-304d54d6-d499-49f0-b231-cb3a9248e4e9/content
with body
[
{
"action": "replace",
"target": "p:{3e7c1460-680d-4fe2-8501-792ccda64915}{197}",
"content": "<p data-tag=\"to-do:completed\" style=\"margin-top:0pt;margin-bottom:0pt\">Sdasdsad</p>"
}
]
And I get response 500 with body:
{
"error": {
"code": "19999",
"message": "Something failed, the API cannot share any more information at the time of the request.",
"innerError": {
"request-id": "574a3b34-c354-4603-a73e-981984a56758",
"date": "2018-09-24T08:23:02"
}
}
}
The error is persistent. Does anybody knows where I can get help?

rails json response not able to build

I have a method in controller creat
it respond generate array of records like
[{"code"=>500, "body"=>{"message"=>"Ivalid data or you enter a duplicate data"}}, {"code"=>200, "body"=>{"id"=>"775606be-d3ae-4b43-a820-74022f8f273f"}}, {"code"=>500, "body"=>{"message"=>["Name has already been taken"]}}, {"code"=>500, "body"=>{"message"=>[:Error, ["No Fable", "level not found in rand", "Invalid or Blank e"]]}}]
now I want to make it n a json response
def create
k=[{"code"=>500, "body"=>{"message"=>"Ivalid data or you enter a duplicate data"}}, {"code"=>200, "body"=>{"id"=>"775606be-d3ae-4b43-a820-74022f8f273f"}}, {"code"=>500, "body"=>{"message"=>["Name has already been taken"]}}, {"code"=>500, "body"=>{"message"=>[:Error, ["No Federation ID in Cookie ID\n# Mapping Table", "level not found in Brand", "Invalid or Blank Source Type"]]}}]
# render create.json.jbuilder
render json: k, status: 200
end
so it generate
{
"bulks": [
{
"code": 500,
"body": {
"message": "Ivalid data or you enter a duplicate data"
}
},
{
"code": 200,
"body": {
"id": "7754322222222f"
}
},
{
"code": 500,
"body": {
"message": [
"Name has already been taken"
]
}
},
{
"code": 500,
"body": {
"message": [
"Error",
[
"No Fable",
"level not found in Brand",
"Invalid or Blank Source Type"
]
]
}
}
]
}
it added bulks: while render the json in controller
how can I remove the bulks the expected json would be
{ {
"code": 500,
"body": {
"message": "Ivalid data or you enter a duplicate data"
}
},
{
"code": 200,
"body": {
"id": "775606be-d3ae-4b43-a820-74022f8f273f"
}
},
{
"code": 500,
"body": {
"message": [
"Name has already been taken"
]
}
},
{
"code": 500,
"body": {
"message": [
"Error",
[
"No Fable",
"level not found in Brand",
"Invalid or Blank Source Type"
]
]
}
} }
Please help

Resources