openCage
openCage

Reputation: 2775

Is the google drive file id settable?

Google drive SDK works with file ids.

When a new file is uploaded, the sdk returns a file id, i.e. it creates one.

Can this id be set by the caller either during the upload or after?

Upvotes: 1

Views: 1079

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116986

You are talking about a file resource here.

If you check the documentation you will see that some fields are writeable while some like ID are not writeable. You cant set the file id only Google can assign a file id.

Update: You can use Custom File Properties to add your own ids.

update2:

you can use Files: generateIds to create an id used with files.

Upvotes: 3

Related Questions