Workspaces and Partitions setup with API | Community
Skip to main content
Level 1
November 4, 2021
Solved

Workspaces and Partitions setup with API

  • November 4, 2021
  • 1 reply
  • 1877 views

We are setting up Workspaces and Partitions and have the feature enabled on our instance.  We currently have API code that does not use the workspaceName or partitionName parameters.  Everything is working as it should.

 

My questions are:

1. Once we create a new Partition, will our code have to specify a partitionName, or will it interact with the Default Partition if it's not specified? 

2. Once we create a new Workspace, will our code have to specify a workspaceName, or will it interact with the Default Workspace if that's not specified?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Oz_Platero

Hello @darylanderman 

 

1. Once we create a new Partition, will our code have to specify a partitionName, or will it interact with the Default Partition if it's not specified? 

Lets look at some example.  Here we will look at API calls; you will want to specify the workspace/partition where you can.

Example API usage; notice in optional parameters you specify partitionName.

https://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Leads/syncLeadUsingPOST

Munchkin example notice in the screenshot there is a box for that info:

Adding Munchkin to your site. NOTICE (workspace/partition) dropdown 

 

2. Once we create a new Workspace, will our code have to specify a workspaceName, or will it interact with the Default Workspace if that's not specified?

Yes.  You will want to be specific, but if left out it will interact with default.

1 reply

Oz_Platero
Oz_PlateroAccepted solution
Level 6
November 4, 2021

Hello @darylanderman 

 

1. Once we create a new Partition, will our code have to specify a partitionName, or will it interact with the Default Partition if it's not specified? 

Lets look at some example.  Here we will look at API calls; you will want to specify the workspace/partition where you can.

Example API usage; notice in optional parameters you specify partitionName.

https://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Leads/syncLeadUsingPOST

Munchkin example notice in the screenshot there is a box for that info:

Adding Munchkin to your site. NOTICE (workspace/partition) dropdown 

 

2. Once we create a new Workspace, will our code have to specify a workspaceName, or will it interact with the Default Workspace if that's not specified?

Yes.  You will want to be specific, but if left out it will interact with default.