creates the upload credentials.
upload credentials for file uploads
const contentful = require('contentful-management')
const client = contentful.createClient({
accessToken: '<content_management_api_key>'
})
try {
const space = await client.getSpace('<space_id>')
const environment = await space.getEnvironment('<environment_id>')
const upload = await client.uploadCredential.create({
spaceId: space.sys.id,
environmentId: environment.sys.id
})
} catch (error) {
console.error(error)
}
System metadata