0

I'm trying to create some slides with the Slides API but I started getting this error Invalid presentation.presentationId: The id is invalid.

I tried to create it through the API reference without success as shown in the image:

Reference request and error image

Is there any limitation on the presentationId or some other required fields I should pass?

This is the exception I get:

{
    "error": {
    "code": 400,
    "message": "Invalid presentation.presentationId: The id is
 invalid.",
    "errors": [
        {
            "message": "Invalid presentation.presentationId: The id is invalid.",
            "domain": "global",
            "reason": "badRequest"
        }
    ],
    "status": "INVALID_ARGUMENT"
    }
}
BenRoob
  • 1,662
  • 5
  • 22
  • 24

2 Answers2

1

You want to create new Slide using Method: presentations.create. If my understanding is correct, how about this?

In your case, please try it using the request body with title and without presentationId as follows.

enter image description here

Note :

  • At this request body, a new Slide with the filename of "Teste123" is created to the root.

Reference :

If I misunderstand your question, I'm sorry.

Tanaike
  • 181,128
  • 11
  • 97
  • 165
0

Dont specify a presentation ID -- just a title and the API call should work as you expect. The presentation ID will be generated by Slides for you.

Previously, Slides would ignore all presentation IDs passed in on create, but this behavior changed recently. See documentation for presentations.create

Maurice Codik
  • 598
  • 2
  • 6